﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using Besture.Bll;
using Besture.Model;
using Besture.Common.Definition;

namespace Besture.UI.Company
{
    public partial class Executives : System.Web.UI.Page
    {
        //Banner图
        public ImageModel _BannerTop { get; set; }
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                InitData();
            }
            GetBanner();
        }

        #region 初始化数据
        private void InitData()
        {
            IntroductionDac theDac = new IntroductionDac();
            rbMeList.DataSource = theDac.GetDataTable(Constants.DICTIONARY_Code_Senior);
            rbMeList.DataBind();
        }
        #endregion

        #region 获取Banner
        /// <summary>
        /// 获取Banner
        /// </summary>
        public void GetBanner()
        {
            ImageDac imageDac = new ImageDac();
            ImageModel imgModel = imageDac.GetDataTableByCode(Constants.DICTIONARY_CODE_BannerCompany, Constants.DICTIONARY_TYPE_IMAGES);
            if (imgModel != null)
                _BannerTop = imgModel;
            else
                _BannerTop = new ImageModel();
        }
        #endregion
    }
}